#ifndef __COMMU_ROUTE_H
#define __COMMU_ROUTE_H

#include "mpc.h"

enum {
    UNKNOW = 0,
    ROUTE_SPI = 1,
    ROUTE_UART = 2,
    ROUTE_SDIO = 3,
    ROUTE_BT = 4,
    ROUTE_BLE = 5,
    ROUTE_MCU = 6,
};

enum {
    CMD_UNKNOW = 0x00,
    CMD_DEVICE_MANAGER = 0x01,
    CMD_BT = 0x02,
    CMD_BLE = 0x03,
    CMD_WIFI = 0x04,
    CMD_FACTORY = 0x05,
    CMD_MAX,
};

typedef uint8_t(*process_func_t)(protocol_packet_t*);
typedef struct {
    uint8_t cmd;
    process_func_t process_fun;
} commu_route_t;

#endif